home *** CD-ROM | disk | FTP | other *** search
- :
- # do.sgi_apache
- #
- DIR_MM=mm-1.1.3
- DIR_EAPI=mod_ssl-2.8.9-1.3.26
- DIR_APACHE=apache_1.3.26
-
- X_ROOT=$ROOT
- X_TOOL=$TOOLROOT
-
- BASE=`pwd`
- DIST=$BASE/dist
- TEMP=$BASE/tmp
- SRC=$BASE/source
-
- if [ -f do.sgi_apache ]
- then
- echo -n ""
- else
- echo "ERROR: can't execute from remote directory... [ do.sgi_apache ]"
- exit
- fi
-
- if [ -d $TEMP ]
- then
- /bin/rm -rf $TEMP
- fi
- mkdir $TEMP
- #
- # ------------------------------------------------------------------[ source ]
- #
- if [ -d $SRC ]
- then
- /bin/rm -rf $SRC
- fi
- mkdir $SRC
- cd $SRC
-
- for file in $DIST/*.gz
- do
- gzcat $file | tar xvf -
- done
- #
- # ------------------------------------------------------------------[ sgi_mm ]
- #
- if [ -d $DIR_MM ]
- then
- cd $DIR_MM
- CC="cc" CFLAGS="-n32 -mips3" OPTIM="-O" ./configure --disable-shared --with-layout=GNU --prefix=/var/sgi_apache/server
-
- make
- cd $SRC
- else
- echo "ERROR: directory missing... [ $DIR_MM ]"
- exit
- fi
- #
- # ----------------------------------------------------------------[ sgi_eapi ]
- #
- if [ -d $DIR_EAPI ]
- then
- cd $DIR_EAPI
- ./configure --with-eapi-only --enable-shared=ssl --with-mm=../$DIR_MM --with-apache=../$DIR_APACHE --with-layout=GNU --prefix=/var/sgi_apache/server
-
- cd $SRC
- else
- echo "ERROR: directory missing... [ $DIR_MM ]"
- exit
- fi
- #
- # --------------------------------------------------------------[ sgi_apache ]
- #
- if [ -d $DIR_APACHE ]
- then
- cd $DIR_APACHE
-
- unset ROOT
- unset TOOLROOT
-
- EAPI_MM=../$DIR_MM \
- CC="cc" CFLAGS="-n32 -mips3" OPTIM="-O" ./configure \
- --enable-module=unique_id \
- --enable-module=mime_magic \
- --enable-module=rewrite \
- --enable-module=speling \
- --enable-module=auth_dbm \
- --enable-module=auth_db \
- --enable-module=auth_anon \
- --enable-module=digest \
- --enable-module=headers \
- --enable-module=cern_meta \
- --enable-module=expires \
- --enable-module=info \
- --enable-module=usertrack \
- --enable-module=proxy \
- --enable-module=so \
- --enable-rule=EAPI \
- --prefix=/var/sgi_apache/server \
- --with-layout=GNU
-
- export ROOT=$X_ROOT
- export TOOLROOT=$X_TOOL
-
- make install-quiet root=$TEMP
- cd $SRC
- else
- echo "ERROR: directory missing... [ $DIR_APACHE ]"
- exit
- fi
-
- cd $TEMP
- if [ -d var/sgi_apache/server/logs ]
- then
- echo -n ""
- else
- mkdir -p var/sgi_apache/server/logs
- fi
-
- cd $TEMP
- cd var/sgi_apache/server/sbin
- if [ -f $DIST/patch.apxs_sgi ]
- then
- cp apxs apxs_sgi
- patch apxs_sgi $DIST/patch.apxs_sgi
- rm -f apxs_sgi.*
- fi
-
- cd $TEMP
- if [ -d var/sgi_apache/src/dist ]
- then
- echo -n ""
- else
- if [ -d var/sgi_apache/src ]
- then
- echo -n ""
- else
- mkdir -p var/sgi_apache/src
- fi
- cd var/sgi_apache/src
- cp ../../../../do.sgi_apache .
- cp -r ../../../../dist .
- cd ..
- du src
- fi
- cd $BASE
- #
- # --------------------------------------------------------------------[ done ]
- #
-